package com.hwl.lab.unit;


import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

@Service
public class UnitData {
    private Date date = new Date();
    private SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd/hh:mm");
    private String time = dateFormat.format(date);
    public String getTime(){
        return time;
    }
}
